'use strict';

const Service = require('egg').Service;

class HomechoiceService extends Service {
  async homeChoice() {
    const result = [
      {
        id: 1,
        imgUrl: '//cdn.cnbj1.fds.api.mi-img.com/mi-mall/7ed6090953a4edca0ee6bc4b36cb4a9e.jpg',
        productName: '小米10 Pro',
        productSlogan: '骁龙865 / 50倍变焦',
        price: 4999,
        market: 0
      },
      {
        id: 2,
        imgUrl: '//cdn.cnbj1.fds.api.mi-img.com/mi-mall/9b3b7c52bffab0806c54652ee0872a64.jpg',
        productName: '小米10',
        productSlogan: '骁龙865 / 1亿像素相机',
        price: 3699,
        market: 3999
      },
      {
        id: 3,
        imgUrl: '//cdn.cnbj1.fds.api.mi-img.com/mi-mall/53e729d30746033a042d8ae9399553a7.jpg',
        productName: 'Redmi Note 8 Pro',
        productSlogan: '6400万全场景四摄',
        price: 1099,
        market: 1399
      },
      {
        id: 4,
        imgUrl: '//i8.mifile.cn/v1/a1/82003442-c6b7-3258-cc7a-2a851216ce8a.webp',
        productName: '小米电视4A 65英寸',
        productSlogan: '4K HDR, 人工智能主意系统',
        price: 2499,
        market: 2999
      },
      {
        id: 5,
        imgUrl: '//cdn.cnbj1.fds.api.mi-img.com/mi-mall/399cfcaa4aae2766733e46704935bdd4.jpg',
        productName: 'Air 13.3" 2019款',
        productSlogan: '新一代独立显卡',
        price: 5699,
        market: 5999
      },
      {
        id: 6,
        imgUrl: '//i8.mifile.cn/v1/a1/ce8d4b39-18b3-5b8e-ea74-5a2c86856e20.webp',
        productName: '自清洁 | 米家互联网空调 1.5匹',
        productSlogan: '变频节能省电，自清洁',
        price: 1999,
        market: 2699
      }
    ]
    return result
  }
}

module.exports = HomechoiceService;
